import * as Cesium from '../../public/cesium/Cesium'

export const _jsQhhRaster = new Cesium.WebMapServiceImageryProvider({
  url:
    'http://218.94.6.92:6080/arcgis/services/jspub_raster_L4_L20/MapServer/WMSServer',
  layers: '0',
  proxy: new Cesium.DefaultProxy('/proxy/'),
})

export const _jsQhhVector = new Cesium.WebMapServiceImageryProvider({
  url:
    'http://218.94.6.92:6080/arcgis/services/jssl_vector_L3_L17/MapServer/WMSServer',
  layers: '0',
  proxy: new Cesium.DefaultProxy('/proxy/'),
})

export const _jsQhhRasterAnno = new Cesium.WebMapServiceImageryProvider({
  url:
    'http://218.94.6.92:6080/arcgis/services/jspub_raster_anno_L3_L20/MapServer/WMSServer?transparent=true&format=image/png32',
  layers: '0',
  proxy: new Cesium.DefaultProxy('/proxy/'),
})

export const _jsQhhRasterAnnogggggggg = new Cesium.UrlTemplateImageryProvider({
  url:
    'http://218.94.6.92:6080/arcgis/rest/services/jspub_raster_anno_L3_L20/MapServer/WMTS?service=WMTS&request=GetTile&layer=jspub_raster_anno_L3_L20&style=default&tilematriX={TileMatrix}&tilerow={TileRow}&tilecoL={TileCol}',
  // 'http://218.94.6.92:6080/arcgis/services/jspub_raster_anno_L3_L20/MapServer/tile/{z}/{x}/{y}',
  // credit: 'Map',
  // minimumLevel: 10,

  layer: 'jspub_raster_L4_L20',
  style: 'default',
  format: 'image/png',
  tileMatrixSetID: 'default028mm',
  credit: new Cesium.Credit('影像服务'),
  maximumLevel: 18,
})

export const _jsQhhRasterWMTS33 = new Cesium.WebMapTileServiceImageryProvider({
  url:
    'http://218.94.6.92:6080/arcgis/rest/services/jspub_raster_L4_L20/MapServer/WMTS/tile?service=wmts&request=GetTile&version=1.0.0&LAYER=jspub_raster_L4_L20&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles',

  // url:
  //   'http://218.94.6.92:6080/arcgis/rest/services/jspub_raster_L4_L20/MapServer/WMTS/tile/1.0.0/jspub_raster_L4_L20/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png',
  // url:
  // 'http://218.94.6.92:6080/arcgis/rest/services/jspub_raster_L4_L20/MapServer/WMTS?service=WMTS&request=GetTile&layer=CZ_Vector&style=default&tilematriX={TileMatrix}&tilerow={TileRow}&tilecoL={TileCol}',

  layer: 'jspub_raster_L4_L20',
  style: 'default',
  format: 'image/png',
  tileMatrixSetID: 'default028mm',
  credit: new Cesium.Credit('影像服务'),
  maximumLevel: 18,
})

// 山体阴影的图层
export const _Raster = new Cesium.WebMapServiceImageryProvider({
  url:
    'http://172.16.0.162:6080/arcgis/services/01shanghai/shanghaiDEM/MapServer/WMSServer',
  // url : 'http://218.94.6.92:6080/arcgis/services/jssl_vector_L3_L17/MapServer/WMSServer',
  layers: '0',
  proxy: new Cesium.DefaultProxy('/proxy/'),
})

// 加载arcgis的地图服务
// export const _arcgisMap = new Cesium.ArcGisMapServerImageryProvider({
//   url:
//     'http://172.16.0.162:6080/arcgis/rest/services/01shanghai/shantiHill/MapServer',
// })
export const _arcgisMap = new Cesium.WebMapServiceImageryProvider({
  url:
    'http://172.16.0.162:6080/arcgis/services/01shanghai/demHill02/MapServer/WMSServer',
  layers: '0',
  proxy: new Cesium.DefaultProxy('/proxy/'),
})

// 天地图注记图层
export const _tdtAnnoLayer = new Cesium.WebMapTileServiceImageryProvider({
  url:
    'https://t0.tianditu.gov.cn/cva_w/wmts?tk=c4e3a9d54b4a79e885fff9da0fca712a&service=wmts&request=GetTile&version=1.0.0&LAYER=cva&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles',
  layer: 'tdtAnnoLayer',
  style: 'default',
  format: 'image/jpeg',
  tileMatrixSetID: 'GoogleMapsCompatible',
  show: false,
})

// 天地图影像图
export const _tiandituMap = new Cesium.WebMapTileServiceImageryProvider({
  url:
    'https://t0.tianditu.gov.cn/img_w/wmts?tk=c4e3a9d54b4a79e885fff9da0fca712a&service=wmts&request=GetTile&version=1.0.0&LAYER=img&tileMatrixSet=w&TileMatrix={TileMatrix}&TileRow={TileRow}&TileCol={TileCol}&style=default&format=tiles',
  layer: 'img',
  style: 'default',
  format: 'tiles',
  tileMatrixSetID: 'w',
  credit: new Cesium.Credit('天地图全球影像服务'),
  subdomains: ['t0', 't1', 't2', 't3', 't4', 't5', 't6', 't7'],
  maximumLevel: 18,
  show: false,
})

//加载谷歌卫星影像
// imageryProvider:new Cesium.UrlTemplateImageryProvider({
//   url:"http://mt1.google.cn/vt/lyrs=s&hl=zh-CN&x={x}&y={y}&z={z}&s=Gali"
// })
